/*     */ package com.iris.egrant.component.model;
/*     */ 
/*     */ import java.io.Serializable;
/*     */ import java.util.HashMap;
/*     */ import java.util.Map;
/*     */ import javax.persistence.Column;
/*     */ import javax.persistence.Entity;
/*     */ import javax.persistence.Id;
/*     */ import javax.persistence.Table;
/*     */ import javax.persistence.Transient;
/*     */ import org.springframework.context.i18n.LocaleContextHolder;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ @Entity
/*     */ @Table(name = "CPT_COMPONENT_CONFIG")
/*     */ public class BaseComponent
/*     */   implements Serializable
/*     */ {
/*     */   private static final long serialVersionUID = -1153746405722704535L;
/*     */   private String key;
/*     */   private String type;
/*     */   private String desc;
/*     */   private String sql;
/*  36 */   private String cacheable = "true";
/*     */   
/*  38 */   private final Map<String, Object> sqlParamVal = new HashMap<String, Object>();
/*     */   
/*  40 */   private String locale = LocaleContextHolder.getLocale().toString();
/*     */   
/*     */   @Id
/*     */   @Column(name = "key")
/*     */   public String getKey() {
/*  45 */     return this.key;
/*     */   }
/*     */   
/*     */   public void setKey(String key) {
/*  49 */     this.key = key;
/*     */   }
/*     */   
/*     */   @Column(name = "type")
/*     */   public String getType() {
/*  54 */     return this.type;
/*     */   }
/*     */   
/*     */   public void setType(String type) {
/*  58 */     this.type = type;
/*     */   }
/*     */   
/*     */   @Column(name = "cpt_desc")
/*     */   public String getDesc() {
/*  63 */     return this.desc;
/*     */   }
/*     */   
/*     */   public void setDesc(String desc) {
/*  67 */     this.desc = desc;
/*     */   }
/*     */   
/*     */   @Column(name = "sql")
/*     */   public String getSql() {
/*  72 */     return this.sql;
/*     */   }
/*     */   
/*     */   public void setSql(String sql) {
/*  76 */     this.sql = sql;
/*     */   }
/*     */   
/*     */   @Transient
/*     */   public String getLocale() {
/*  81 */     return this.locale;
/*     */   }
/*     */   
/*     */   public void setLocale(String locale) {
/*  85 */     this.locale = locale;
/*     */   }
/*     */   
/*     */   @Transient
/*     */   public Map<String, Object> getSqlParamVal() {
/*  90 */     return this.sqlParamVal;
/*     */   }
/*     */   
/*     */   public void setSqlParamVal(Map<String, Object> sqlParamVal) {
/*  94 */     this.sqlParamVal.putAll(sqlParamVal);
/*     */   }
/*     */   
/*     */   @Transient
/*     */   public String getCacheable() {
/*  99 */     return this.cacheable;
/*     */   }
/*     */   
/*     */   public void setCacheable(String cacheable) {
/* 103 */     this.cacheable = cacheable;
/*     */   }
/*     */ }


/* Location:              D:\文件kjt\WEB-INF\lib\egrant-core-2.2.20240205.1659.jar!\com\iris\egrant\component\model\BaseComponent.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */